package com.mall.order.common.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mall.common.core.annotation.Excel;
import com.mall.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 订单对象 oms_order
 *
 * @author bwie
 * @date 2025-02-05
 */
@Data
public class OmsOrder extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderSn;

    /** 用户id */
    @Excel(name = "用户名")
    private Long userId;

    /** InterfaceInfoId */
    private Long InterfaceInfoId;

    /** 应付总额 */
    @Excel(name = "应付总额")
    private BigDecimal payAmount;

    private String payType;

    //订单状态
    private Integer payStatus;

    /** 订单来源[0-&gt;PC订单；1-&gt;app订单] */
    @Excel(name = "订单来源[0-&gt;PC订单；1-&gt;app订单]")
    private Long sourceType;

    /** 订单状态【0-&gt;待付款；1-&gt;待发货；2-&gt;已发货；3-&gt;已完成；4-&gt;已关闭；5-&gt;无效订单】 */
    @Excel(name = "订单状态【0-&gt;待付款；1-&gt;待发货；2-&gt;已发货；3-&gt;已完成；4-&gt;已关闭；5-&gt;无效订单】")
    private Long status;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String note;

    /** 删除状态【0-&gt;未删除；1-&gt;已删除】 */
    @Excel(name = "删除状态【0-&gt;未删除；1-&gt;已删除】")
    private Long deleteStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;


}
